package com.example.erp.dto.loginDTO;

import com.example.erp.pojo.permission.User;
import lombok.Data;

import java.util.List;

/**
 * 用户信息DTO
 * */
@Data
public class UserInfoDTO {
    private final User user;
    private final List<String> permissions;
    private final List<String> roles;

    public UserInfoDTO(User user, List<String> permissions,List<String> roles) {
        this.user=user;
        this.permissions=permissions;
        this.roles = roles;
    }
}
